const mongoose = require('mongoose')

const { Schema, model } = mongoose

const users = new Schema({
    __v:{
        type:Number,
        select:false
    },
    phone: {
        type: String,
        required: true
    },
    nickName: {
        type: String,
        required: true
    },
    passWord: {
        type: String,
        required: true,
        select: false
    },
    token:{
        type: String,
        required: true
    },
})

module.exports = model('user', users)